package io.renren.modules.demo.algorithm;

public class Car
{
    private int serialNumber;  //车辆编号，从1开始

    private int useCost;  //车辆固定使用成本

    private int costPerKilometer;  //每行驶1km的成本

    private int carryingCapacity;  //载重，单位为吨

    private int currentLocation;  //自定义，表示现在所在的地方（配送中心或某个仓库的序号，0为配送中心）

    public int getSerialNumber()
    {
        return serialNumber;
    }

    public void setSerialNumber(int serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public int getUseCost()
    {
        return useCost;
    }

    public void setUseCost(int useCost)
    {
        this.useCost = useCost;
    }

    public int getCostPerKilometer()
    {
        return costPerKilometer;
    }

    public void setCostPerKilometer(int costPerKilometer)
    {
        this.costPerKilometer = costPerKilometer;
    }

    public int getCarryingCapacity()
    {
        return carryingCapacity;
    }

    public void setCarryingCapacity(int carryingCapacity)
    {
        this.carryingCapacity = carryingCapacity;
    }

    public int getCurrentLocation()
    {
        return currentLocation;
    }

    public void setCurrentLocation(int currentLocation)
    {
        this.currentLocation = currentLocation;
    }

    public Car()
    {

    }

    public Car(Car car)
    {
        this.serialNumber = car.serialNumber;
        this.useCost = car.useCost;
        this.costPerKilometer = car.costPerKilometer;
        this.carryingCapacity = car.carryingCapacity;
        this.currentLocation = car.currentLocation;
    }


    @Override
    public String toString() {
        return "Car{" +
                "serialNumber=" + serialNumber +
                ", useCost=" + useCost +
                ", costPerKilometer=" + costPerKilometer +
                ", carryingCapacity=" + carryingCapacity +
                ", currentLocation=" + currentLocation +
                '}';
    }
}
